package rule

func init() {
	Register(&stringRule{})
}

type stringRule struct{}

func (s *stringRule) Name() string {
	return "string"
}

func (s *stringRule) Check(in *RuleInput) (err error) {
	if _, ok := in.Value.(string); ok {
		return
	}
	return in.Error()
}
